From 5b7c06118c07dd0e8a8f1529b8991f780037aa80 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sat, 16 Apr 2016 14:42:13 +0200 Subject: [PATCH] Adwaita: ensure dialogs titlebar rounded corners broken from my previous commit about rounded corners, dialogs doesn't use the "window" node, but the "dialog" node, so use the .background styleclass in the selectors which is more generic. --- gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index a5e8fdd14e..5ff65c054b 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -1530,8 +1530,8 @@ headerbar { } } -window:not(.tiled):not(.maximized) .titlebar { - &, &:backdrop { +.background:not(.tiled):not(.maximized) .titlebar { + &:backdrop, & { border-top-left-radius: 7px; border-top-right-radius: 7px; } diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index bc7a0f2acf..b3c9c9da8c 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -1945,7 +1945,7 @@ headerbar button { margin-top: 6px; margin-bottom: 6px; } -window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop { +.background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) .titlebar { border-top-left-radius: 7px; border-top-right-radius: 7px; } diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index a3c209e464..b7160d6529 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -1952,7 +1952,7 @@ headerbar button { margin-top: 6px; margin-bottom: 6px; } -window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop { +.background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) .titlebar { border-top-left-radius: 7px; border-top-right-radius: 7px; } -- 2.30.2